package com.hunan.chinamobile.dto;

import com.hunan.chinamobile.model.Exceptions;

public class ExceptionDTO extends Exceptions {

    private String deviceName;
    private String bsName;
    private String bsId;
    private Double bsLat;
    private Double bsLng;
    private String deviceLocaltion;
    private String exceptionDesc;
    private String linkMan;
    private String linkPhone;

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getBsName() {
        return bsName;
    }

    public void setBsName(String bsName) {
        this.bsName = bsName;
    }

    public String getDeviceLocaltion() {
        return deviceLocaltion;
    }

    public void setDeviceLocaltion(String deviceLocaltion) {
        this.deviceLocaltion = deviceLocaltion;
    }

    public String getExceptionDesc() {
        if(getType() == 1){
            exceptionDesc = "电压信号故障";
        }else if(getType() == 2){
            exceptionDesc = "光纤信号故障";
        }
        return exceptionDesc;
    }

    public void setExceptionDesc(String exceptionDesc) {
        this.exceptionDesc = exceptionDesc;
    }

    public String getLinkMan() {
        return linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan;
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

    public String getBsId() {
        return bsId;
    }

    public void setBsId(String bsId) {
        this.bsId = bsId;
    }

    public Double getBsLat() {
        return bsLat;
    }

    public void setBsLat(Double bsLat) {
        this.bsLat = bsLat;
    }

    public Double getBsLng() {
        return bsLng;
    }

    public void setBsLng(Double bsLng) {
        this.bsLng = bsLng;
    }
}
